#ifndef OPERATORHANDLER_H
#define OPERATORHANDLER_H

#include <memory>
#include "ParseHandlerBase.h"
#include "ConstNumberHandler.h"

namespace CExpression
{
	class OperatorHandler:public ParseHandlerBase
	{
	public:
		OperatorHandler():ParseHandlerBase()
		{
			this->next=WrapperPtr<IParseHandler>(new ConstNumberHandler());
		}
		virtual bool ParseCore(ParseContext &context);
	private:
		void ParseOperator(std::shared_ptr<ExpressionToken> token,ParseContext &context);
	};
}

#endif